<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title>会员中心-{$web_config['web_title']}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<link href="/assets/css/frontend.min.css?v=1.0.1" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
        <link href="/assets/css/user.css?v=1.0.1" rel="stylesheet">
    </head>

    <body>
        {include file="header"}
        <main class="content">
            <style>
    .basicinfo {
        margin: 15px 0;
    }

    .basicinfo .row > .col-xs-4 {
        padding-right: 0;
    }

    .basicinfo .row > div {
        margin: 5px 0;
    }
</style>
<div id="content-container" class="container">
    <div class="row">
        {include file="user_left"}
        <div class="col-md-10">
            <div class="panel panel-default ">
                <div class="panel-body">
                   <h2 class="page-header">{:session('user_phone_'.$web_config.sub_id)}的会员中心</h2>
                    <div class="row user-baseinfo">
                        <div class="col-md-9 col-sm-9 col-xs-10">
                            <!-- Content -->
                            <div class="ui-content">
                                <!-- Success -->
                                <div class="basicinfo">
                                    <div class="row">
                                        <div class="col-xs-4 col-md-2">余额</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_balance']}</div>
                                        <div class="col-xs-4 col-md-2">等级积分</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_credit']}</div>
                                    </div>
									<div class="row">
                                        <div class="col-xs-4 col-md-2">拥金余额</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_commission']}</div>
                                        <!--<div class="col-xs-4 col-md-2">分站余额</div>
                                        <div class="col-xs-8 col-md-4">
											<a href="/user/score.html" data-toggle="tooltip" class="viewscore">{$userinfo['u_substation']}</a>
                                        </div>-->
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-4 col-md-2">登录次数</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_count']} 次</div>
                                        <div class="col-xs-4 col-md-2">等级</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['ug_title']}</div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-4 col-md-2">本次时间</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_this_time']}</div>
                                        <div class="col-xs-4 col-md-2">上次登录</div>
                                        <div class="col-xs-8 col-md-4">{$userinfo['u_last_time']}</div>
                                    </div>
                                    <div class="row">
                                        <div class="col-md-2">推广赚钱</div>
                                        <div class="col-md-10" style="color: red">	
										成功推广一个即可获得下线充值金额的{$web_config['s_commission_one']}%提成，永久有效。。http://{$web_domain}{:url("index/reg",array('code'=>$userinfo['u_promo']))}</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <h2 class="page-header">公告&帮助中心</h2>
                    <div class="row user-dashboard">
                      <div class="col-md-5">
					    <ul class="list-unstyled">
						{volist name="notice" id="vo"}
							<li>
								<p class="clearfix" style="border-bottom: 1px solid #eeeeee;">
									<a href="{:url('notice/content',array('id'=>$vo.n_id))}" class="pull-left" target="_blank">{$vo.n_title}</a>
									<span class="text-muted pull-right">{$vo.n_addtime|strtotime|'Y-m-d',|date}</span>
								</p>
							</li>
					    {/volist}
						</ul>	
					  </div>
					  <div class="col-md-7">
                        <table class="table table-striped table-bordered table-hover">
                         <thead>
							<tr>
								<th>会员等级</th>
								<th>所需积分</th>
								{volist name="warehouse" id="vo"}
								<th>{$vo.w_title}</th>
								{/volist}
							</tr>
						</thead>
                         <tbody>
							{volist name="user_group" id="vo"}
							<tr>
								<td>{$vo.ug_title}</td>
								<td>{$vo.ug_credit}</td>
								{volist name="vo.group" id="vo1"}
									<td>{$vo1.f_money}</td>
                                {/volist}
							</tr>
							{/volist}
							<tr><td colspan="9">等级积分等于您的累计充值金额(如：累计充值1元，等级积分为{$web_config['s_credit']})</td></tr>
                          </tbody>
                         </table>
                      </div>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</div>
        </main>
		{include file="footer_content"}
    </body>
</html>